home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 43 / Amiga Format CD43 (1999)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1999-09].iso / -serious- / programming / other / python-1.52 / source / embed / testscript.py < prev   
Text File  |  1999-06-14  |  378b  |  22 lines

  1. print 'This is executed from a separate test script'
  2.  
  3. try:
  4.  
  5.     import xyzzy
  6.  
  7.     print xyzzy.foo()
  8. except ImportError,x:
  9.     print 'importing xyzzy failed',x
  10.  
  11. result='abc'*9
  12.  
  13.  
  14. import sys
  15.  
  16. print 'sys.path=',sys.path
  17. print 'sys.argv=',sys.argv
  18. print 'sys.exec_prefix=',sys.exec_prefix
  19. print 'sys.executable=',sys.executable
  20. print 'sys.prefix=',sys.prefix
  21. print 'sys.version=',sys.version
  22.